package test3;

import org.springframework.stereotype.Service;

@Service
public class SimpleUserService implements UserService {

    @Override
    public String getUserRole(String username) {
        // 这里是业务逻辑的伪代码，根据用户名获取用户角色
        if ("admin".equals(username)) {
            return "ADMIN";
        } else {
            return "USER";
        }
    }
}

